package hotel;
import java.util.Scanner;
public class hotel {
	public static void main(String[] args) {
		Scanner console = new Scanner(System.in);
		jiudian hotel = new jiudian();
	System.out.println("欢迎进入" + hotel.name + "管理系统");
	while(true) {
	System.out.println("请输入指令：show.查看in.入住out.退房exit.退出");
	String command = console.nextLine();
	switch(command) {
	case"show":
		hotel.show();
		break;
	case"in":
		hotel.in();
		break;
	case"out":
		hotel.out();
		break;
	case"exit":
	System.exit(0);/*強制退出*/
	return;
//	结束死循环，break loop;
    default:
    	System.out.println("指令有误，清重新输入");
    	break;
	}
	}
	}
}
